﻿<UserControl x:Class="SpeakupUI2.LoginPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Style x:Key="ItemStyle">
            <Setter Property="Control.Padding" Value="1" />
            <Setter Property="Control.Margin" Value="1" />
        </Style>
    </UserControl.Resources>
    <Expander IsExpanded="True" Expanded="ExpandedEvent"
                                Collapsed="CollapsedEvent">
        <Expander.Header>
            <DockPanel>
                <Label  Content="Login"   />                
                <Button Name="ExpanderRefreshButton"
                        Content="Refresh" 
                        Visibility="Collapsed"/>
            </DockPanel>
        </Expander.Header>
        <GroupBox Padding="0 5 0 0">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="0.5*" />
                    <ColumnDefinition Width="0.5*" />
                </Grid.ColumnDefinitions>
                
                <Label Grid.Row="0" Grid.Column="0" 
                       Style="{StaticResource ItemStyle}"                       
                       Content="User" />
                
                <Label Grid.Row="1" Grid.Column="0" 
                       Style="{StaticResource ItemStyle}"                       
                       Content="Login" />
                
                <Label Grid.Row="2" Grid.Column="0" 
                       Style="{StaticResource ItemStyle}"                       
                       Content="School" />
                
                <TextBox        Grid.Row="0" Grid.Column="1" 
                                Name="User"
                                Style="{StaticResource ItemStyle}" />
                <PasswordBox    Grid.Row="1" Grid.Column="1" 
                                Name="Password"
                                Style="{StaticResource ItemStyle}" />
                
                <TextBox        Grid.Row="2" Grid.Column="1" 
                                Name="School"
                                Style="{StaticResource ItemStyle}" />
                
                <Button         Grid.Row="3" 
                                Grid.Column="0" 
                                Grid.ColumnSpan="2"  Content="Refresh" 
                                Style="{StaticResource ItemStyle}" />
            </Grid>
        </GroupBox>
    </Expander>
</UserControl>
